import Vue from 'vue'
import VueRouter from 'vue-router'
import Line1 from '../components/Line 1.vue'
import Line2 from '../components/Line 2.vue'
import Line3 from '../components/Line 3.vue'

Vue.use(VueRouter)

const routes = [
  //将初始路径改为home
  {
    path:'*',
    redirect:'/Assemble/Line3'
  },
  {
    path: '/Assemble/Line1',
    name: 'Line1',
    component: Line1
  },
  {
    path: '/Assemble/Line2',
    name: 'Line2',
    component: Line2
  },
  {
    path: '/Assemble/Line3',
    name: 'Line3',
    component: Line3
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
